import ActionTypes from '../ActionTypes'

export default class UserCommand {
    static addUser(userInfo){
        return (dispatch)=>{
            dispatch({
                type: ActionTypes.USER_ADD_SUCCESS,
                userInfo: userInfo
            });
        }
    }
    static clearUser() {
        return (dispatch) => {
            dispatch({
                type: ActionTypes.USER_ADD_CLEAR,
                userInfo: {}
            })
        }
    }
}